﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Yaml.Presentation.Parsing.TokenScanners {
    abstract class DocumentTokenScanner : TokenScanner {

        public DocumentTokenScanner(Scanner scanner)
            : base(scanner) {
        }

        protected override void ScanForToken() {
            Scanner.Forward(3);
        }

        protected override void AfterScan() {
            base.AfterScan();
            Scanner.UnwindAllIndent(End);
            RemoveSimpleKey(false);
        }


    }
}
